<?php
namespace common\modules\modularity\models;

/**
 * This is the model class for table "{{%modularity}}".
 *
 * @property string $id
 * @property integer $is_system
 * @property integer $enable_backend
 * @property integer $enable_frontend
 * @property integer $enable_api
 * @property integer $sort
 */
class Modularity extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%modularity}}';
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['is_system', 'enable_backend', 'enable_frontend', 'enable_api', 'sort'], 'integer'],
            [['id'], 'string', 'max' => 64]
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'is_system' => 'Is System',
            'enable_backend' => 'Enable Backend',
            'enable_frontend' => 'Enable Frontend',
            'enable_api' => 'Enable Api',
            'sort' => 'Sort',
        ];
    }
}